import {ref} from "vue";

export function useStars(num, callback) {
  const starNum = ref(num)
  const setStarNum = (curNum) => {
    starNum.value = curNum
    callback()
  }
  return [starNum, setStarNum]
}